Skip to content

Add table element finder in private API - #912

Merged
aaltat merged 4 commits into
robotframework:masterfrom
aaltat:add_TableElementFinder_in_public_api
Sep 23, 2017
Merged

aaltat merged 4 commits into
robotframework:masterfrom
aaltat:add_TableElementFinder_in_public_api

Conversation

@aaltat

@aaltat aaltat commented Sep 21, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@aaltat

aaltat commented Sep 21, 2017

Copy link
Copy Markdown
Contributor Author

This is for #911

@aaltat aaltat changed the title Add table element finder in public API Add table element finder in private public API Sep 22, 2017

@pekkaklarck pekkaklarck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good to me. Always nice when the diff has more red than green. I added two nitpick comments about imports, though.

There were lot of changes to tests, apparently due to indentation changes. Didn't bother to look at them too closely now, but tests seem to pass so they ought to be good too.


from SeleniumLibrary import SeleniumLibrary
from SeleniumLibrary.locators import ElementFinder
from SeleniumLibrary.locators import TableElementFinder

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last two lines could (and IMHO should) be combined:

from SeleniumLibrary.locators import ElementFinder, TableElementFinder

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread src/SeleniumLibrary/__init__.py Outdated
TableElementKeywords,
WaitingKeywords)
from SeleniumLibrary.locators import ElementFinder
from SeleniumLibrary.locators import TableElementFinder

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could (and IMHO should) be combined with the above import:

from SeleniumLibrary.locators import ElementFinder, TableElementFinder

@aaltat

aaltat commented Sep 23, 2017

Copy link
Copy Markdown
Contributor Author

The changes in the unit test are caused because the ElementFinder is not anymore a instance of the class. Now it's inherited and comes through few properties and mocking was easier this way.

@aaltat aaltat changed the title Add table element finder in private public API Add table element finder in private API Sep 23, 2017
@aaltat

aaltat commented Sep 23, 2017

Copy link
Copy Markdown
Contributor Author

Fixed the imports and I should really stop doing imports that way.

@aaltat
aaltat merged commit 57d1a89 into robotframework:master Sep 23, 2017
@aaltat
aaltat deleted the add_TableElementFinder_in_public_api branch October 30, 2017 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants